package com.rabbit.db.entity;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <h1>登录日志表</h1>
 *
 * @author zjw
 * @date 2022/1/21 22:15
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_login_log")
public class LoginLog {

    /**
     * 登录日志编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long loginId;

    /**
     * 登录账号
     */
    private String loginAccount;

    /**
     * 登录IP地址
     */
    private String loginIp;

    /**
     * 登录地点
     */
    private String loginLocation;

    /**
     * 浏览器类型
     */
    private String browser;

    /**
     * 操作系统
     */
    private String os;

    /**
     * 登录时间
     */
    private Date loginTime;
}